<form class="layui-form" action="{:url()}" method="post" id="editForm">

    {:FormExt::select('父工厂名称', 'factory_id', '',$factoryKV,'','','lay-verify="required"')}
    {:FormExt::input('子工厂/组别名称', 'name', '', '请输入组名名称', 'required', 'lay-verify="required"')}

    {:FormExt::checkbox('委外类型','out_type', explode(',', $formData['out_type']), $outTypeMap,'','lay-verify=""')}

    {:FormExt::input('裁床倍率(MSE加工费)', 'unit_cutting', '', '', 'required', 'lay-verify="required"')}
    {:FormExt::input('车间倍率(MSE加工费)', 'unit_workshop', '', '', 'required', 'lay-verify="required"')}
    {:FormExt::input('尾部倍率(MSE加工费)', 'unit_tail', '', '', 'required', 'lay-verify="required"')}
    {:FormExt::input('专机或手工倍率(MSE加工费)', 'unti_manual', '', '', 'required', 'lay-verify="required"')}
    {:FormExt::input('计时工价(元/时)', 'unit_time_price', '', '', 'required', 'lay-verify="required"')}
    {:FormExt::input('排序', 'order', '', '排序', 'required', 'lay-verify="required|number"')}

    <div class="pop-bottom-bar">
    	<input type="hidden" class="field-id" name="id">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit" hisi-data="{pop: true, refresh: true}">提交保存</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>
</form>

{include file="system@block/layui" /}
    
<script>
    var formData = {:json_encode($formData)};
    layui.use(['form', 'func'], function() {
        var $ = layui.jquery, form = layui.form;
        layui.func.assign(formData);
    });
</script>